.class public abstract Les/jz;
.super Les/iz;
.source "PopupMenuToolbar.java"


# direct methods
.method public constructor <init>(Landroid/content/Context;Z)V
    .locals 0

    .line 1
    invoke-direct {p0, p1, p2}, Les/iz;-><init>(Landroid/content/Context;Z)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;ZI)V
    .locals 0

    .line 2
    invoke-direct {p0, p1, p2, p3}, Les/iz;-><init>(Landroid/content/Context;ZI)V

    return-void
.end method


# virtual methods
.method protected c()V
    .locals 5

    .line 1
    new-instance v0, Les/jz$a;

    iget-object v1, p0, Les/iz;->a:Landroid/content/Context;

    invoke-direct {v0, p0, v1}, Les/jz$a;-><init>(Les/jz;Landroid/content/Context;)V

    iput-object v0, p0, Les/iz;->b:Landroid/widget/LinearLayout;

    .line 2
    new-instance v0, Landroid/graphics/Rect;

    invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V

    .line 3
    iget-object v1, p0, Les/iz;->a:Landroid/content/Context;

    check-cast v1, Landroid/app/Activity;

    invoke-virtual {v1}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v1

    .line 4
    invoke-virtual {v1}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v1

    .line 5
    invoke-virtual {v1, v0}, Landroid/view/View;->getWindowVisibleDisplayFrame(Landroid/graphics/Rect;)V

    .line 6
    iget v0, v0, Landroid/graphics/Rect;->top:I

    .line 7
    new-instance v2, Landroid/view/WindowManager$LayoutParams;

    invoke-direct {v2}, Landroid/view/WindowManager$LayoutParams;-><init>()V

    iput-object v2, p0, Les/iz;->f:Landroid/view/WindowManager$LayoutParams;

    const/4 v3, -0x1

    .line 8
    iput v3, v2, Landroid/view/WindowManager$LayoutParams;->width:I

    .line 9
    iget-object v3, p0, Les/iz;->a:Landroid/content/Context;

    invoke-static {v3}, Lcom/estrongs/android/pop/utils/t;->b(Landroid/content/Context;)I

    move-result v3

    sub-int/2addr v3, v0

    iget v4, p0, Les/iz;->j:I

    sub-int/2addr v3, v4

    iput v3, v2, Landroid/view/WindowManager$LayoutParams;->height:I

    .line 10
    iget-object v2, p0, Les/iz;->f:Landroid/view/WindowManager$LayoutParams;

    const/4 v3, -0x2

    iput v3, v2, Landroid/view/WindowManager$LayoutParams;->format:I

    .line 11
    sget v2, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v4, 0x1c

    if-lt v2, v4, :cond_0

    .line 12
    invoke-virtual {v1}, Landroid/view/View;->getRootWindowInsets()Landroid/view/WindowInsets;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/WindowInsets;->getDisplayCutout()Landroid/view/DisplayCutout;

    move-result-object v1

    if-eqz v1, :cond_0

    .line 13
    invoke-virtual {v1}, Landroid/view/DisplayCutout;->getSafeInsetTop()I

    move-result v1

    goto :goto_0

    :cond_0
    const/4 v1, 0x0

    :goto_0
    sub-int/2addr v0, v1

    .line 14
    iget-object v2, p0, Les/iz;->f:Landroid/view/WindowManager$LayoutParams;

    iput v0, v2, Landroid/view/WindowManager$LayoutParams;->y:I

    .line 15
    iget-object v0, p0, Les/iz;->b:Landroid/widget/LinearLayout;

    const/16 v2, 0x8

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 16
    iget-object v0, p0, Les/iz;->b:Landroid/widget/LinearLayout;

    const/4 v2, 0x0

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 17
    iget-object v0, p0, Les/iz;->b:Landroid/widget/LinearLayout;

    new-instance v2, Les/jz$b;

    invoke-direct {v2, p0}, Les/jz$b;-><init>(Les/jz;)V

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 18
    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v0, v3, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 19
    new-instance v2, Les/jz$c;

    iget-object v3, p0, Les/iz;->a:Landroid/content/Context;

    iget v4, p0, Les/iz;->h:I

    invoke-direct {v2, p0, v3, v4}, Les/jz$c;-><init>(Les/jz;Landroid/content/Context;I)V

    iput-object v2, p0, Les/iz;->g:Les/iz$g;

    .line 20
    iget-object v2, p0, Les/iz;->b:Landroid/widget/LinearLayout;

    const/16 v3, 0x35

    invoke-virtual {v2, v3}, Landroid/widget/LinearLayout;->setGravity(I)V

    .line 21
    iget-object v2, p0, Les/iz;->a:Landroid/content/Context;

    instance-of v3, v2, Les/hz;

    if-eqz v3, :cond_2

    .line 22
    check-cast v2, Les/hz;

    .line 23
    invoke-interface {v2}, Les/hz;->r()Landroid/graphics/Rect;

    move-result-object v2

    if-eqz v2, :cond_2

    if-nez v1, :cond_1

    const/high16 v1, 0x42300000    # 44.0f

    .line 24
    invoke-static {v1}, Lcom/estrongs/android/pop/utils/t;->a(F)I

    move-result v1

    :cond_1
    iput v1, v0, Landroid/widget/LinearLayout$LayoutParams;->topMargin:I

    .line 25
    invoke-virtual {v2}, Landroid/graphics/Rect;->height()I

    move-result v1

    iget v2, v0, Landroid/widget/LinearLayout$LayoutParams;->topMargin:I

    sub-int/2addr v1, v2

    iget-object v2, p0, Les/iz;->a:Landroid/content/Context;

    .line 26
    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f0700a6

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v2

    sub-int/2addr v1, v2

    iput v1, v0, Landroid/widget/LinearLayout$LayoutParams;->height:I

    .line 27
    iget-object v1, p0, Les/iz;->a:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f0700e9

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v1

    iput v1, v0, Landroid/widget/LinearLayout$LayoutParams;->rightMargin:I

    .line 28
    :cond_2
    iget-object v1, p0, Les/iz;->b:Landroid/widget/LinearLayout;

    iget-object v2, p0, Les/iz;->g:Les/iz$g;

    invoke-interface {v2}, Les/iz$g;->a()Landroid/view/View;

    move-result-object v2

    invoke-virtual {v1, v2, v0}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    return-void
.end method
